home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / ftn / alarm.z / alarm
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. AAAALLLLAAAARRRRMMMM((((3333FFFF))))                                                            AAAALLLLAAAARRRRMMMM((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      alarm - execute a subroutine after a specified time
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      iiiinnnntttteeeeggggeeeerrrr ffffuuuunnnnccccttttiiiioooonnnn aaaallllaaaarrrrmmmm ((((ttttiiiimmmmeeee,,,, pppprrrroooocccc))))
  13.      iiiinnnntttteeeeggggeeeerrrr ttttiiiimmmmeeee
  14.      eeeexxxxtttteeeerrrrnnnnaaaallll pppprrrroooocccc
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      This routine arranges for subroutine _p_r_o_c to be called after _t_i_m_e
  18.      seconds. If _t_i_m_e is ``0'', the alarm is turned off and no routine will be
  19.      called.  The returned value will be the time remaining on the last alarm.
  20.  
  21. FFFFIIIILLLLEEEESSSS
  22.      /usr/lib/libU77.a
  23.  
  24. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  25.      sleep(3F), signal(3F)
  26.  
  27. BBBBUUUUGGGGSSSS
  28.      _A_l_a_r_m and _s_l_e_e_p interact. If _s_l_e_e_p is called after _a_l_a_r_m, the _a_l_a_r_m
  29.      process will never be called. SIGALRM will occur at the lesser of the
  30.      remaining _a_l_a_r_m time or the _s_l_e_e_p time.
  31.  
  32. OOOORRRRIIIIGGGGIIIINNNN
  33.      MIPS Computer Systems
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.